------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  E:\REStat_MS14767_Vol96(2)\Data preparation Compustat\2_compustatamerica.log
  log type:  text
 opened on:  18 Dec 2014, 10:10:38

. *-----------------------------------------------------------------
. 
. ****************************************
. * This short file only drops non-american firms
. * from the compustat data set and creates a small
. * set with the country information.
. ****************************************
. 
. set mem 600m

. 
. use "clean_compustat_master.dta", clear

. 
. keep ticker countryinc year

. so ticker year

. 
. save "ticker_country.dta", replace
file ticker_country.dta saved

. 
. 
. use "clean_compustat_master.dta", clear

. 
. drop if countryinc!=0
(53928 observations deleted)

. 
. save compustat_master_america.dta, replace
file compustat_master_america.dta saved

. 
. log close
      name:  <unnamed>
       log:  E:\REStat_MS14767_Vol96(2)\Data preparation Compustat\2_compustatamerica.log
  log type:  text
 closed on:  18 Dec 2014, 10:10:48
------------------------------------------------------------------------------------------------------------------------------------------
